<include file="header"/>
<script type="text/javascript">
	$(function(){
		$('#file_upload').uploadify({
			'uploader'		: '__PUBLIC__/swf/uploadify.swf',
			'script'		: '/index.php?s=/ajax/upload/',
			'cancelImg'		: '/uploadify/cancel.png',
			'folder'		: '__PUBLIC__/uploads',
			'queueID'		: 'upload_queue',
			'multi'			: true,
			'queueSizeLimit': 5,
			'auto'			: true,
			'onComplete'	: function(event, ID, fileObj, response, data) {
				var str="<input type='text' size='60' name='images[]' value='"+response+"'/>";
				$("#upload_node").append(str);

			}
		});

	})
</script>
<div class="explain_public">
<b class="red">注意：</b><br/>
1 所有带<span class="red">*</span>选项必填。<br/>
</div>
<form method="post" action="__URL__/add" id="contract_add">
<table width="98%" class="manager_public_tab" align="center" width="80%" border="0" cellpadding="0" cellspacing="1" >
<tr>
	<td><span class="red">*</span>景点名称</td>
	<td><input type="text" class="validate[required] text-input " id="name" name="name" ></td>
</tr>
<tr>
	<td><span class="red">*</span>景点地址</td>
	<td>
		<div id="upload_queue">
			<input type="text" class="validate[required] text-input " id="address" name="address" >
		</div>
	</td>
</tr>
<tr>
	<td><span class="red">*</span>景点照片</td>
	<td>
		<div id="image_list"></div>
		<input id="file_upload" type="file"/>
		<div id="upload_node"></div>
	</td>
</tr>
<tr>
	<td><span class="red">*</span>最佳旅游时间</td>
	<td><textarea name="travel_time" rows="10" cols="80"></textarea></td>
</tr>
<tr>
	<td><span class="red">*</span>当地住宿</td>
	<td><textarea name="local_stay" rows="10" cols="80"></textarea></td>
</tr>
<tr>
	<td><span class="red">*</span>当地饮食</td>
	<td><textarea name="local_diet" rows="10" cols="80"></textarea></td>
</tr>
<tr>
	<td><span class="red">*</span>景点介绍</td>
	<td><textarea name="content" rows="10" cols="80"></textarea></td>
</tr>
<tr>
	<td colspan="2" align="center"><input type="submit"></td>
</tr>
</table>
</form>
<include file="footer"/>